package com.atguigu.eduservice.client;

import com.atguigu.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {

    //service-vod的删除视频接口地址
    //删除视频
    @DeleteMapping("/eduvod/video/{videoId}")
    public R deleteVideoAliyun(@PathVariable("videoId") String videoId);

    //删除多个视频
    @DeleteMapping("/eduvod/video/delete-batch")
    public R deleteBatchVideoIds(@RequestParam("videoIdsList") List<String> videoIdsList);

}
